package com.survey.service;


import com.survey.pojo.data.QuestionDO;
import com.survey.pojo.vo.QuestionVO;
import com.survey.utils.PageBean;
import com.survey.utils.Result;

import java.lang.reflect.InvocationTargetException;

/**
 * <br/>
 * Created by jj on 2018/08/04
 */
public interface QuestionService {

	Result addQuestion(QuestionVO questionVO) throws Exception;

	Result updateQuestion(QuestionVO questionVO) throws Exception;
	
	QuestionDO findDetailQuestion(QuestionVO questionVO) throws Exception;
	
	Result listQuestion(QuestionVO questionVO) throws Exception;

    Result listQuestionPage(QuestionVO questionVO) throws Exception;
	
	Result countQuestion(QuestionVO questionVO) throws Exception;
	
	Result deleteQuestion(QuestionVO questionVO) throws Exception;

	//管理员端： 根据问卷id查询题目
	PageBean<QuestionVO> listQuestionBySurveyId(QuestionVO questionVO) throws InvocationTargetException, IllegalAccessException;
}